<%@ include file="/WEB-INF/jsp/include.jsp"%>
<html>
<head>
<link type="text/css" rel="stylesheet" media="all" href="./jquery-ui-1.8.9.custom.css" /> 
<script type="text/javascript" src="./Validation.js"></script>
<script type="text/javascript" src="./jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="./jquery-ui-1.8.9.custom.min.js"></script>
<script type="text/javascript" src="./header.js"></script>
<script type="text/javascript" src="./sort.js"></script>
<script type="text/javascript" src="./jquery.cookie.js"></script>
<script type="text/javascript" src="./cookie-service.js"></script>
<script type="text/javascript" src="./auto-complete.js"></script>
<link type="text/css" rel="stylesheet" media="all" href="./simple.css" />
<script type="text/javascript">
	function sortBySalary(x,y) {
      return x.salary - y.salary; 
	}	
	
	$(document).ready(function() {
		setPrintParams('User Salary : ',['Salary','salary','Designation','designationName','Gender','gender','Experience','experience','Location','locationName']);
		setFilterParams(['locationId','designationId'],['locationName','designationName']);	
		$.get("http://localhost:8085/poc/getSalaryJson.htm?companyId=" + ${param.companyId},handleJson,"html");
		setAutoComplete(['designationId','designation','locationId','location']);
	});
</script>
</head>
<body>
	<div id="header"></div>
	Salaries
	<br />
		<div class="form-row"><span class="label">Location: </span><input type="text" id="locationId" /></div>
		<div class="form-row"><span class="label">Designation : </span><input type="text" id="designationId" /></div>
		<div class="form-row"><input class="submit" type="button" value="Filter" onclick="filter()" /></div>
		
		<div class="form-row"><span class="label">Sort By : </span> <select name="sort" id="sortId">
									<option value="R">Salary</option>
								</select></div>
		<div class="form-row"><input class="submit" type="button" Value="Sort" onClick="sort(sortBySalary)"></div>
	<div id="abc"></div>
</body>
</html>